<br /><br />
<script>var js_url="<?php echo $base_url?>";</script>
<script type="text/javascript" src="<?php echo $base_url;?>style/js/BE/admin_adv.js"></script>
<form name="trueform2" id="trueform2" method="POST" action="<?php echo $base_url;?>admin_adv/edit" onSubmit="return submitPost_jQuery();" enctype="multipart/form-data">
<input type="hidden" name="isPost" value="1">
<table width="80%" border="0" cellspacing="1" cellpadding="0" align="center" style="margin:auto; background-color:#3D84CC;">
  <tr>
    <td colspan="2" align="left" bgcolor="#3D84CC" class="title3">&nbsp;Cập nhật <?php echo $page_title;?></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Tiêu đề:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_title" id="txt_title" class="text2" style="width:650px;" value="<?php echo $adv_detail[0]->title;?>" />     
    </td>
  </tr>
  <tr id="tr_noi_dung_chi_tiet">
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Nội dung:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<textarea cols="10" id="txt_desc" name="txt_desc" class="text2" rows="2" style="width:650px;"><?php echo $adv_detail[0]->desc;?></textarea>
    </td>
  </tr> 
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Danh mục rao vặt:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
	  	<select name="cbo_adv_cate" id="cbo_adv_cate" class="combo1">
      	<option value="" class="combo-item-1">-- Chọn --</option>
        <?php foreach($aAdvCate as $key=>$item): ?>
      	<option value="<?php echo $item->cate_id; ?>" <?php if ($adv_detail[0]->adv_cate_id == $item->cate_id) echo "selected='selected'" ?> class="combo-item-1"><?php echo $item->cate_name; ?></option>
				<?php
            $i++;
          endforeach; 
        ?>          
      </select>    
    </td>
  </tr> 
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Tỉnh/TP:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
	  	<select name="cbo_city" id="cbo_city" class="combo1">
      	<option value="" class="combo-item-1">-- Chọn --</option>
        <?php foreach($aCity as $key=>$item): ?>
      	<option value="<?php echo $item->city_id; ?>" <?php if ($adv_detail[0]->city_id == $item->city_id) echo "selected='selected'" ?> class="combo-item-1"><?php echo $item->city_name; ?></option>
				<?php
            $i++;
          endforeach; 
        ?>          
      </select>    
    </td>
  </tr>   
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;Tags:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_tag" id="txt_tag" class="text2" style="width:650px;" value="<?php echo $adv_detail[0]->tag;?>"/>     
    </td>
  </tr>  
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Trạng thái:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
	  	<select name="cbo_Status" id="cbo_Status" class="combo1">
      	<option value="" class="combo-item-1">-- Chọn --</option>
      	<option value="1" <?php if ($adv_detail[0]->status=="1"){echo "selected=\"selected\"";}?> class="combo-item-1">Hiển thị</option>
        <option value="0" <?php if ($adv_detail[0]->status=="0"){echo "selected=\"selected\"";}?> class="combo-item-1">Không hiển thị</option>
      </select>    
    </td>
  </tr>  
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;Họ tên:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_user_full_name" id="txt_user_full_name" class="text2" style="width:650px;" value="<?php echo $adv_detail[0]->user_full_name;?>"/>     
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;Điện thoại:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_user_tel" id="txt_user_tel" class="text2" style="width:650px;" value="<?php echo $adv_detail[0]->user_tel;?>"/>     
    </td>
  </tr>  
  <tr>
    <td colspan="2" style="text-align:center;" bgcolor="#FFFFFF" height="40px">
		<input type="hidden" name="h_id" id="h_id" value="<?php echo $id;?>" />
		<input type="submit" name="btn_Save" id="btn_Save" value="Lưu" style="width:70px;" class="button" />&nbsp;
		<input type="button" name="btn_GoBack" id="btn_GoBack" value="Quay lại" style="width:70px;" class="button" onclick="history.go(-1); return false;" />
	</td>
  </tr>
</table>
</form>